home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / ADA / GNAT / !gcc / adainc / 6 / ads / s-tasabo < prev    next >
Text File  |  1996-02-12  |  5KB  |  84 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --               S Y S T E M . T A S K I N G . A B O R T I O N              --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                           (Compiler Interface)                           --
  9. --                                                                          --
  10. --                             $Revision: 1.17 $                            --
  11. --                                                                          --
  12. --    Copyright (C) 1991, 92, 93, 94, 1995 Free Software Foundation, Inc.   --
  13. --                                                                          --
  14. -- GNARL is free software; you can  redistribute it  and/or modify it under --
  15. -- terms of the  GNU General Public License as published  by the Free Soft- --
  16. -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
  17. -- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
  18. -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
  19. -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
  20. -- for  more details.  You should have  received  a copy of the GNU General --
  21. -- Public License  distributed with GNARL; see file COPYING.  If not, write --
  22. -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
  23. -- MA 02111-1307, USA.                                                      --
  24. --                                                                          --
  25. -- As a special exception,  if other files  instantiate  generics from this --
  26. -- unit, or you link  this unit with other files  to produce an executable, --
  27. -- this  unit  does not  by itself cause  the resulting  executable  to  be --
  28. -- covered  by the  GNU  General  Public  License.  This exception does not --
  29. -- however invalidate  any other reasons why  the executable file  might be --
  30. -- covered by the  GNU Public License.                                      --
  31. --                                                                          --
  32. -- GNARL was developed by the GNARL team at Florida State University. It is --
  33. -- now maintained by Ada Core Technologies Inc. in cooperation with Florida --
  34. -- State University (http://www.gnat.com).                                  --
  35. --                                                                          --
  36. ------------------------------------------------------------------------------
  37.  
  38. --  Note: the compiler generates direct calls to this interface, via Rtsfind.
  39. --  Any changes to this interface may require corresponding compiler changes.
  40.  
  41. with System.Task_Primitives;
  42. --  Used for,  Task_Primitives.Pre_Call_State
  43.  
  44. package System.Tasking.Abortion is
  45.  
  46.    procedure Abort_Tasks (Tasks : Task_List);
  47.    --  Abort_Tasks is called to initiate abortion, however, the actual
  48.    --  abortion is done by abortee by means of Abort_Handler
  49.  
  50.    procedure Change_Base_Priority (T : Task_ID);
  51.    --  Change the base priority of T.
  52.    --  Has to be called with T.Lock write locked.
  53.  
  54.    procedure Defer_Abortion;
  55.    --  Defer the affects of low-level abortion in the calling task until a
  56.    --  matching Undefer_Abortion call is executed.  Defer_Abortion can be
  57.    --  nested; abortion will be deferred until the calling task has
  58.    --  called Undefer_Abortion for each outstanding call to
  59.    --  Defer_Abortion.  Note that abortion must be deferred before
  60.    --  calling any low-level (GNULLI) services.
  61.    pragma Inline (Defer_Abortion);
  62.  
  63.    procedure Defer_Abortion_Self (T : Task_ID := Self);
  64.    --  Performs exactly the same operations as Defer_Abortion, but the
  65.    --  Task_ID of the current task is passed as a parameter instead of
  66.    --  retrieved in the body.
  67.    pragma Inline (Defer_Abortion_Self);
  68.  
  69.    procedure Undefer_Abortion;
  70.    --  Undo the effects of one call to Defer_Abortion.  When the calling
  71.    --  task has called Undefer_Abortion for each outstanding call to
  72.    --  Defer_Abortion, any pending low-level abortion will take effect,
  73.    --  and subsequent low-level abortions will have an immediate
  74.    --  asynchronous effect.
  75.    pragma Inline (Undefer_Abortion);
  76.  
  77.    procedure Undefer_Abortion_Self (T : Task_ID := Self);
  78.    --  Performs exactly the same operations as Undefer_Abortion, but the
  79.    --  Task_ID of the current task is passed as a parameter instead of
  80.    --  retrieved in the body.
  81.    pragma Inline (Undefer_Abortion_Self);
  82.  
  83. end System.Tasking.Abortion;
  84.